import Entity.Account;
import Service.AccountService;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Date;
import java.util.List;

public class test1 {
    ApplicationContext ac = null;
    AccountService accountService = null;

    @Before
    public void init() {
        ac = new ClassPathXmlApplicationContext("spring.xml");
        accountService = (AccountService) ac.getBean("accountService");
    }
    @Test
    public void test(){
      Account account1=accountService.getAccount(1);
      Account account2 = accountService.getAccount(2);
     String s = accountService.jiajian(account1,account2,20);
        System.out.println(s);
    }
}
